<?php


namespace app\common\business;


class OrderGoods
{
    public $model = null;

    public function __construct() {
        //初始化模型对象
        $this->model = new \app\common\model\mysql\OrderGoods();
    }

    public function getGoodsById($id) {
        $res = $this->model->getGoodsById($id);
        if (!$res) {
            return [];
        }
        return $res->toArray();
    }
}